import request from '@/utils/request'

// 查询短信签名列表
export function listSignatures(query) {
  return request({
    url: '/Sms/signatures/list',
    method: 'get',
    params: query
  })
}

// 查询短信签名详细
export function getSignatures(signatureId) {
  return request({
    url: '/Sms/signatures/' + signatureId,
    method: 'get'
  })
}

// 新增短信签名
export function addSignatures(data) {
  return request({
    url: '/Sms/signatures',
    method: 'post',
    data: data
  })
}

// 修改短信签名
export function updateSignatures(data) {
  return request({
    url: '/Sms/signatures',
    method: 'put',
    data: data
  })
}

// 审核短信签名
export function auditSignatures(data) {
  return request({
    url: '/Sms/signatures/audit',
    method: 'put',
    data: data
  })
}

// 删除短信签名
export function delSignatures(signatureId) {
  return request({
    url: '/Sms/signatures/' + signatureId,
    method: 'delete'
  })
}
